package com.xiaocg.visitor;

public class VisitorTest {

    public static void main(String[] args) {
        Home home = new Home();
        home.add(new Cat());
        home.add(new Dog());

        Person person = new Owner();

        home.action(person);

        System.out.println("15348166031".substring(7));
    }
}
